# -*- coding: utf-8 -*-
from django.urls import path
from . import views

app_name = 'TestPlatform_User'  # 声明app
from .BasicOperation import UserLogin, UserRegister, UserLogout, PlatformHome, ProjectFun, InterfaceFun, \
    DepartmentFun, JumpFun, SendEmailFun, UploadFun, ReportFun, ImportYApi

urlpatterns = [
    path('home/', PlatformHome.home, name='Home'),
    path('', UserLogin.user_login, name='Login'),
    path('logout/', UserLogout.logout, name='Logout'),
    path('register/', UserRegister.register, name='Register'),
    path('project_list/', ProjectFun.project_list, name='Project_List'),
    path('project_info/', ProjectFun.project_info, name='Project_Info'),
    path('interface_list/', InterfaceFun.interface_list, name='Interface_List'),
    path('interface_perform/', InterfaceFun.interface_perform, name='Interface_Perform'),
    path('add_project/', ProjectFun.add_project, name='Add_Project'),
    path('addDepartment/', DepartmentFun.add_department, name='addDepartment'),
    path('sendemail/', SendEmailFun.sendmail, name='SendMail'),
    path('SendEmail/', JumpFun.sendemail, name='SendEmail'),
    path('upload_excel/', UploadFun.uploadexcel, name='UploadExcel'),
    path('edit_project/', JumpFun.edit_project, name='Edit_Project'),
    path('detail_project/', JumpFun.detail_project, name='Detail_Project'),
    path('delete_data/', InterfaceFun.delete_data, name='Delete_Data'),
    path('delete_pj/', InterfaceFun.delete_pj, name='Delete_Pj'),
    path('update_data_if/', InterfaceFun.update_data_if, name='Update_Data_If'),
    path('batch_delete_if/', InterfaceFun.batch_delete_if, name='Batch_Delete_If'),
    path('batch_delete_pj/', InterfaceFun.batch_delete_pj, name='Batch_Delete_Pj'),
    path('update_data_pj/', ProjectFun.update_data_pj, name='Update_Data_Pj'),
    path('pj_uploadexcel/', UploadFun.pj_uploadexcel, name='Pj_UploadExcel'),
    path('batch_perform_if/', InterfaceFun.batch_perform_if, name='Batch_Perform_If'),
    path('perform_result/', views.perform_result, name='Perform_Result'),
    path('report/', ReportFun.report, name='Report'),
    path('get_api/',ImportYApi.get_api,name='GetApi'),

]
